#ifndef __CALC_MAX_SQUARE_H__
#define __CALC_MAX_SQUARE_H__

typedef struct segment {
    int start;
    int size;
    struct segment *next;
} Segment;

bool calcMaxSquare(int *s, 
                   int row_num, 
                   int column_num, 
                   int &max_x, 
                   int &max_y, 
                   int &size);

#endif

